Skip to content

quick fixes (Python2 -> Python3) - non integer indexes correction#1

Open
wlucilus wants to merge 1 commit intohamster3d:masterfrom
juvilius:master
Open

quick fixes (Python2 -> Python3) - non integer indexes correction#1
wlucilus wants to merge 1 commit intohamster3d:masterfrom
juvilius:master

Conversation

@wlucilus
Copy link
Copy Markdown

@wlucilus wlucilus commented Aug 24, 2022

[mathchem.py]
convert float division on indexes to a integer divison

float divisions
return ((ord(s[off + 1 + pos / 6]) - 63) & (2**(5 - pos % 6))) != 0
x in range(n * (n - 1) / 2):

->

integer division
return ((ord(s[off + 1 + pos // 6]) - 63) & (2**(5 - pos % 6))) != 0
x in range(n * (n - 1) // 2):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants